<template>
	<view style="padding-top: 100rpx;">
		<view class="text-area">
			<text>输入值：</text><input type="text" v-model="title" style="color: red;" />
		</view>
		<view class="text-area">
			<text>回传值：</text><input type="text" :value="callBackValue" style="color: darkgreen;" />
		</view>
		<comA :intent="title"></comA>
		<comB @callBackFun="callBack"></comB>
	</view>
</template>

<script>
	import comA from '../../components/compA.vue'
	import comB from '../../components/compB.vue'

	export default {
		components: {
			comA,
			comB,
		},
		data() {
			return {

			};
		}
	}
</script>

<style>
	.text-area {
		margin: 20rpx;
		display: flex;
		align-items: center;
		gap: 10rpx;
	}

	.input {
		border: 1px solid #ccc;
		padding: 10rpx;
		flex: 1;
	}
</style>